package com.gxa.insurance.pojo;



import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * @date 2022/6/6
 */
@ApiModel(value = "保险申请")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Policy {

//   主键编号
   @ApiModelProperty(name ="id",value = "编号",dataType="int",required = false)
   private Integer id;

//   用户姓名
   @ApiModelProperty(name="name",value = "姓名",dataType = "string",required = true)
   private String name;

//   手机号
@ApiModelProperty(name="phone",value = "手机号",dataType = "string",required = true)
   private String phone;

//   车牌号
@ApiModelProperty(name="platNo",value = "车牌号",dataType = "string",required = true)
   private String plateNo;

//   保险公司名称 公司表的id
@ApiModelProperty(name="companyName",value = "保险公司名字",dataType = "string",required = true)
   private String  companyName;

//   交强保单号
@ApiModelProperty(name="pulPolicy",value = "交强保单号",dataType = "string",required = true)
   private String pulPolicy;

//   商业保单号
@ApiModelProperty(name="cialPolicy",value = "商业保单号",dataType = "string",required = true)
   private String cialPolicy;

//   获得积分
@ApiModelProperty(name="integral",value = "获得积分",dataType = "integer",required = true)
   private Integer integral;

//   兑换积分比例
@ApiModelProperty(name="percentage",value = "兑换积分比例",dataType = "integer",required = true)
   private Integer percentage;

//   保险公司电话
@ApiModelProperty(name="insurancePhone",value = "保险公司电话",dataType = "string",required = true)
   private String insurancePhone;


//   交强保单起始时间
@ApiModelProperty(name="pulStime",value = "交强保单起始时间",dataType = "date",required = true)
@JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
   private Date pulStime;

//   交强保单终止时间
@ApiModelProperty(name="pulTertime",value = "交强保单终止时间",dataType = "date",required = true)
@JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
   private Date pulTertime;

   //   商业保单起始时间
   @ApiModelProperty(name="cialStime",value = "商业保单起始时间",dataType = "date",required = true)
   @JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
   private Date cialStime;

   //   商业保单终止时间
   @ApiModelProperty(name="cialTertime",value = "商业保单终止时间",dataType = "date",required = true)

   @JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
   private Date cialTertime;

   //保险金额总计
   @ApiModelProperty(name ="total",value = "保险金额总计",dataType="int",required = true)
   private Integer total;


   private List<Information> informations;

}
